﻿namespace Vinno.Brand.Pack.Core.Entities
{
    /// <summary>
    /// 产品案列
    /// </summary>
    [Description("产品案列")]
    [EntitySchema(TableConstants.Brand, "VINNO")]
    public class ProductCase : EntityBase<Guid>, ICreatedTime
    {
        /// <summary>
        /// 案列图
        /// </summary>
        [Required]
        [DisplayName("案列图Id")]
        public long CaseImgId { get; set; }

        /// <summary>
        /// 案列描述
        /// </summary>
        [DisplayName("案列描述")]
        [StringSize(StringSizeType.Data)]
        public string CaseDesc { get; set; }

        [Required]
        [DisplayName("产品Id")]
        public Guid ProductId { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        [DisplayName("排序号")]
        public int? OrderNo { get; set; }

        /// <summary>
        /// 获取或设置 创建时间
        /// </summary>
        [DisplayName("创建时间")]
        public DateTime CreatedTime { get; set; }

        public virtual FileEntity CaseImg { get; set; }

        public virtual Product Product { get; set; }

    }
}
